<template>
  <div class="card w">
    <div class="card__header">
      <div class="left">
        <span class="card__header__title">{{ title }}</span>
        <span class="iconfont" v-if="isIcon">></span>
      </div>
      <span class="right">{{ desc }}</span>
    </div>
    <slot />
  </div>
</template>

<script setup lang="ts">
defineProps<{ title: string, isIcon?: boolean, desc?: string }>()
</script>

<style lang="scss" scoped>
.card {
  display: flex;
  flex-direction: column;

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;

    &__title {
      font-size: 24px;
      color: #2C2C2C;
      font-weight: bold;
    }

    .right {
      font-size: 14px;
      color: #129D69;
      font-weight: bold;
    }
  }


}
</style>